﻿function EditarCaso(form) {
    form.action = "/caso/edit";
    form.submit();
}
function ModificarCaso(form) {
	form.method = "post";
    form.action = "/caso/edit";
    form.submit();
}
function AgregarCaso(form) {
    form.submit();
}
function ListCostDocuments(form) {
    form.action = "/caso/ListCostDocuments";
    form.submit();
}

function AddCostDocument(form) {
    form.action = "/caso/AddCostDocument";
    form.submit();
}
function AgregarCaso(form) {
    form.action = "/caso/create";
    form.submit();
}
function ListarTareas(form) {
    form.action = "/tarea/ListarTareasCaso";
    form.method = "get";
    form.submit();
}
function CerrarCaso(form) {
    if (confirm("Esta seguro que desea dar el caso como cerrado")) {
        form.method = "post";
        form.action = "/caso/cerrar";
        form.submit();
    } else {
        return false;
    }
}